package org.dk.service;

import org.dk.pojo.Cart;

import java.util.List;

public interface CartService {
    List<Cart> addCart(List<Cart> cartlist, Long itemId, Integer num);

    //将购物车数据放进redis中
    void addCartListToRedis(List<Cart> cartlist,String username);

    //从redis中获取购物车数据
    List<Cart> findListCartFromRedis(String username);

    List<Cart> merageCartListCookieRedis(List<Cart> cookielist,List<Cart> redislist);

    List<Cart> getCartListFormRedis(String id);
}
